import math as m

class Point:
    def __init__(self, x1, x2, y1, y2):
        self.x1 = x1
        self.x2 = x2
        self.y1 = y1
        self.y2 = y2
class Line(Point):
    def getLen(self):
        self.len = m.sqrt(((self.x1 - self.x2) ** 2) + ((self.y1 - self.y2) ** 2))
        print(self.len)

l = Line(1, 2, 1, 2)
l.getLen()

                          

"""
import math

class Point():
    def __init__(self, x=0, y=0):
        self.x = x
        self.y = y

    def getX(self):
        return self.x

    def getY(self):
        return self.y

class Line():
    def __init__(self, p1, p2):
        self.x = p1.getX() - p2.getX()
        self.y = p1.getY() - p2.getY()
        self.len = math.sqrt(self.x*self.x + self.y*self.y)

    def getLen(self):
        return self.len

p1 = Point(1, 1)
p2 = Point(4, 5)
line = Line(p1, p2)
line.getLen()
